<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/static/admin/jsp/include.jsp"%>
<script type="text/javascript">
	var id = "${id}";
	
	var writeContent = function(ret) {
		$('#accounts').textbox("setValue", ret);
	};
	
	$(function() {
		
		if (id != '') {
			parent.$.messager.progress({
				text : '数据加载中....'
			});
			$.post(sy.contextPath + '/userWannaBuy/selectByGoods', {
				id : id
			}, function(result) {
				if (result) {
					console.log(result);
					var html = '';
					for(var i = 0; i<result.length; i++){
					    html += '<tr>';
					    html += '<th style="width:100px;">联系电话:'+result[i].userPhone+'</th>';
                        html += '</tr>';
					}
                    html
					$("#ss").append(html)
					//$('form').form('load', result);
				}
				parent.$.messager.progress('close');
			}, 'json');

		}else{
		}
		
		
	});
</script>
</head>
<body>
	<form id="form" method="post">
        <input name="id" type="hidden" />
        <div style="padding:15px;font-size: 12px">
            <table style="table-layout:fixed;" border="0" cellspacing="0" class="formtable" id="ss">
            </table>
        </div>
	</form>
</body>
</html>